package de.clapp.backend.requests;

import java.lang.reflect.Type;

import de.clapp.client.musicbox.MusicBoxModel;
import de.clapp.data.MusicItem;

public class MusicVoteRequest implements ServerRequest
{
    private static final long serialVersionUID = -3600787904415378790L;

    private MusicItem item;

    public MusicVoteRequest(MusicItem item)
    {
        this.item = item;
    }

    @Override
    public Type getReturnType()
    {
        return Object.class;
    }

    @Override
    public Object getItem()
    {
        return new Object();
    }

    @Override
    public void setItem(Object item)
    {
        // Do nothing...
    }

    @Override
    public Object execute()
    {
        MusicBoxModel.getI().songVoted(this.item);
        return new Object();
    }

}
